package com.lanou.bbs.service.impl;

import com.lanou.bbs.dao.ReplyDao;
import com.lanou.bbs.entity.BbsReply;
import com.lanou.bbs.service.ReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 张贵宏
 * @Date 18/6/21 下午2:44
 */
@Service
public class ReplyServiceImpl implements ReplyService {

    @Autowired
    ReplyDao replyDao;
    @Override
    public void sendReply(BbsReply bbsReply) {
        replyDao.sendReply(bbsReply);
    }

    @Override
    public List<BbsReply> findByTid(int tid) {
        return replyDao.findByTid(tid);
    }
}
